<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta name="renderer" content="webkit">
    <meta name="force-rendering" content="webkit">
{{--    <link rel="shortcut icon" href="/uploads/20240606/3606f2da74579f0cf1954de93eaeb94f.png" />--}}
    <title>法律咨询</title>
{{--    <meta name="keywords" content="外贸获客,外贸获客平台,外贸获客工具,外贸获客软件,外贸怎么找客户资源,出口外贸怎么找客户,如何找外贸客户,外贸客户如何开发" />--}}
{{--    <meta name="description" content="Keepoe汇集全球优质B2B企业资源，提供准确全面的公司信息查询服务。探索国际商业合作机会，助力您的业务拓展至全球市场。" />--}}
    <script src="{{ asset('web/js/head-lang-obj.js') }}"></script>
    <link href="{{ asset('web/css/visual.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{ asset('web/css/global.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{ asset('web/css/iconfont.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{ asset('web/css/style.css') }}" rel="stylesheet" type="text/css" />
    <script src="{{ asset('web/js/jquery-1.7.2.min.js') }}">
    </script>
    <script src="{{ asset('web/js/jquery.lazyload.min.js') }}">
    </script>
{{--    <script src="{{ asset('web/js/global-1.00030-269.js') }}">--}}
{{--    </script>--}}
    <script src="{{ asset('web/js/global-1.00030-2691.js') }}">
    </script>
    <script src="{{ asset('web/js/particles.js') }}">
    </script>
    <link href="{{ asset('web/css/flag.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{ asset('web/css/iconfont_1.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{ asset('web/css/b2b_enterprise_library.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{ asset('web/css/paginator_custom.css') }}" rel="stylesheet" type="text/css" />
    <script type="application/ld+json" async="">
			{
				"@context": "https:\/\/schema.org",
				"@type": "WebSite",
				"url": "",
				"potentialAction": {
					"@type": "SearchAction",
					"target": {
						"@type": "EntryPoint",
						"urlTemplate": "\/structural?page=index&q={search_term_string}"
					},
					"query-input": "required name=search_term_string"
				}
			}
		</script>
</head>
<body class="lang_cn list">
<script>
    const ajax_request_domain = '';

    // set cache
    function setLocalStorage(name, val, expire = 0) {
        localStorage.setItem(name, JSON.stringify({
            val: val,
            expire: expire
        })); //转换成json字符串序列
    }
    // remove cache
    function removeLocalStorage(name) {
        localStorage.removeItem(name);
    }
    // get cache
    function getLocalStorage(name) {
        let defaultVal = '';
        if (name == 'userId') {
            defaultVal = 0;
        }
        const val = localStorage.getItem(name); //get cache
        if (!val) {
            return defaultVal;
        }
        const dataobj = JSON.parse(val); //解析出json对象
        if (typeof dataobj !== 'object') {
            return defaultVal;
        }
        if (parseInt(new Date().getTime() / 1000) > dataobj.expire) //if expire
        {
            removeLocalStorage(name);
            return defaultVal;
        } else {
            return dataobj.val;
        }
    }

    // 权限与限制
    var user_rule_data = [],
        user_limit_data = [];
    user_rule_data = getLocalStorage('user_rule_data');
    user_limit_data = getLocalStorage('user_limit_data');
    if (!user_rule_data) {
        user_rule_data = ["company_report", "report_global", "trade_list"];
    }
    if (!user_limit_data) {
        user_limit_data = {
            "report_type": "day",
            "report_global": 0,
            "report_customs": 5,
            "report_partner": 0,
            "report_hs_code": 0,
            "report_business_area": 0,
            "report_port": 0,
            "report_contact": 0,
            "email_collect": 0,
            "search_list": 10,
            "clue_list": 10,
            "trade_list": 0,
            "trade_detail": 10,
            "product_total": 0,
            "export_total": 0,
            "enterprise_employee": 5,
            "employee_enterprise_employee": 5,
            "canton_fair_exhibition": 3,
            "canton_fair_employee": 5,
            "financing_development": 5
        };
    }

    var zuoooo_config = {
        "domain": "",
        "date": "2024/10/22 13:10:33",
        "lang": "cn",
        "currency": "",
        "currency_symbols": "",
        "currency_rate": "",
        "FbAppId": "",
        "FbPixelOpen": "0",
        "UserId": "0",
        "TouristsShopping": "1",
        "PaypalENV": "production",
        "PaypalExcheckout": "",
        "PaypalLoaclPayment": "",
        "PaypalLang": "zh_CN",
        "PaypalBusiness": "1",
        "PaypalCreditCard": "1",
        "tmp_dir": "/tmp/",
        "Permit": {
            "ability": user_rule_data,
            "limits": user_limit_data,
            "Level": "0"
        },
        "normal_cout": {
            "buyer": "875",
            "supplier": "672",
            "country": "239"
        },
        "default_area_ary": ["VN", "IN", "ID", "PH", "KZ", "BD", "PK", "UZ", "US", "MX", "CO", "PE", "CL", "PA",
            "UY", "EC", "AR", "UA", "RU", "CA", "KE", "ET"
        ],
        "IsMobile": 0,
        "IsApp": 0,
        "selectTimeData": "2024-01-01",
        "endTimeDate": "2024-01-31",
        "consultant": {
            "name": "AMY",
            "qrcode": "/assets/site_resource/picture/qrcode_w.png",
            "b_qrcode": "/assets/site_resource/picture/qrcode_b.png",
            "phone": "13028334710"
        }
    }
    window.onhashchange = function() {
        if (document.location.pathname.indexOf('/cart/complete/') != -1) {
            window.history.replaceState(null, null, '/cart/checkout.html');
            window.history.go(0);
        }
    }
</script>
<div id="header">
    <input type="hidden" id="AccountId" value="0" />
    <input type="hidden" id="Level" value="0" />
    <input type="hidden" id="IsLastOrders" value="0" />
    <div class="menu">
    </div>
    <div class="logo">
        <a href="{{ route('/') }}">
            <!-- logo -->
            <img src="{{ asset('web/icon/logo@2x.png') }}" />
        </a>
    </div>
    <div class="nav">
        <div class="item">
            <div class="name clue_list">
                <!-- <a class="" href="./buyer.html">
                    Buyers </a> -->
            </div>
        </div>
        <div class="item">
            <div class="name clue_list">
                <!-- <a class="" href="./supplier.html">
                    Suppliers </a> -->
            </div>
        </div>
        <div class="item">
            <div class="name clue_list">
                <!-- <a class="" href="./trade.html">
                    Trade Data </a> -->
            </div>
        </div>
        <div class="item B2B_enterprise_library">
            <div class="name">
                <!-- <a href="./companies.html">B2B Data</a> -->
            </div>
        </div>
        <div class="item">
            <div class="name">
                <!-- <a class="" href="./market.html">
                    Analysis </a> -->
            </div>
        </div>
        <div class="item">
            <div class="name">
                <!-- <a class="" href="./BtoBInquiry.html">
                    Leads </a> -->
            </div>
        </div>
        <div class="item">
            <div class="name">
                <!-- <a class="" href="./price.html">
                    Price </a> -->
            </div>
        </div>
        <div class="item">
            <div class="name">
                <!-- <a class="" href="./reviews.html">
                    Reviews </a> -->
            </div>
        </div>
    </div>
    <div class="member">
        <!--未登录前-->
        <a class="login no_login" href="./login.html">登录</a>
        <a class="register no_login" href="./register.html" target="_blank">注册</a>
    </div>
</div>
<div class="mobile_fixed_menu">
    <div class="close">
    </div>
    <div class="logo">
        <a href="javascript:;">
            <img src="{{ asset('web/picture/logo.svg') }}" alt="Keepoe" />
        </a>
    </div>
    <div class="nav">
        <div class="item clue_list">
            <div class="name">
                <a href="/buyer">
                    Buyers </a>
            </div>
        </div>
        <div class="item clue_list">
            <div class="name">
                <a href="/supplier">
                    Suppliers </a>
            </div>
        </div>
        <div class="item">
            <div class="name">
                <a href="/trade">
							<span>
								Trade Data </span>
                </a>
            </div>
        </div>
        <div class="item">
            <div class="name">
                <a href="/market">
                    Analysis </a>
            </div>
        </div>
        <div class="item">
            <div class="name">
                <a href="/price">
							<span>
								Price </span>
                </a>
            </div>
        </div>
        <div class="item">
            <div class="name">
                <a href="/reviews">
                    Reviews </a>
            </div>
        </div>
        <div class="item">
            <div class="name">
                <a href="javascript:;">
                    English
                </a>
            </div>
        </div>
    </div>
    <div class="member">
        <a class="register" href="javascript:;">
            Use Now </a> <a class="account" href="/account">Membership Center </a>
    </div>
</div>
<script>
    $(function() {
        $('#header .member .login').on('click', function() {
            window.location.href = '/login.html';
        })
    })
</script>
<script src="{{ asset('web/js/moment.min.js') }}"></script>
<script src="{{ asset('web/js/daterangepicker.js') }}"></script>
<link href="{{ asset('web/css/daterangepicker.css') }}" rel="stylesheet" type="text/css" />



<link href="{{ asset('web/css/clue_list.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('web/css/chosen1.5.1.min.css') }}" rel="stylesheet" />
<script src="{{ asset('web/js/chosen-1.5.1.jquery.js') }}"></script>
<script src="{{ asset('web/js/index.js') }}"></script>
<script src="{{ asset('web/js/daterangepicker.js') }}"></script>
<script src="{{ asset('web/js/companies.js') }}"></script>
<script src="{{ asset('web/js/ajaxrequest.js') }}"></script>
<script src="{{ asset('web/js/loading.js') }}"></script>

<div id="banner" class="particles_out">
    <div id="particles-js"></div>

    <div class="wide">

        <div class="search boxs">
{{--            <form id="search_form">--}}
            <form action="{{ route('/') }}" method="get">
                <div class="input_box">
                    <div class="input">
                        @if ($search == '')
                        <input type="text" name="search" placeholder="请输入搜索内容" notnull="" autocomplete="off" value="" />
                        @else
                        <input type="text" name="search" placeholder="{{ $search }}" notnull="" autocomplete="off" value="" />
                        @endif
                    </div>

{{--                    <button class="dig" type="button" onclick="searchBtn()">搜索</button>--}}
                    <button type="submit" class="dig" type="button">搜索</button>

                    <div class="search_tips_alert">
                        <div class="search_tips">
                            <i class="close"> </i>

                            <div class="s_t_title">
                                Please Select from Dropdown<span>Company Name </span>
                            </div>

                            <div class="s_t_content">
                                You Entered a Company Name, We Recommend Searching by Company Name </div>

                            <div class="s_t_btn_out">
                                <div class="s_tips">1/1</div>

                                <div class="s_t_btn">Confirm</div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- <div class="video_box video">
                    <span>文字咨询 </span>
                </div> -->

                <!--
                <input type="hidden" name="no_lock" value="0" />

                <input type="hidden" name="is_go" value="0" />

                <input type="hidden" name="collection_type" value="0" />

                <input type="hidden" name="collection_role" value="0" />

                <input type="hidden" name="logistics" value="0" />

                <input type="hidden" name="do_action" value="action.search_form" />
                -->
            </form>

            <div class="tuijian">
                <span> 热搜: </span>
                @foreach ($question_search_list as $question_search)
                <a class="item" href="{{ route('/', ['search'=>$question_search->search]) }}">
                    <div class="rank">{{ $question_search->search }}</div>
                </a>
                @endforeach
            </div>
        </div>
    </div>
</div>

<div class="navigation" style="display: flex;align-items: center;">
    首页><em> 列表</em>
</div>

<div class="main_con buss_main">
    <div class="wide">
        <div class="left_side">
            <div class="filter_condition">
                <div class="name">类型<span> </span></div>
            </div>
            <form id="filter_form">
                <a href="{{ route('/', ['category_one_id'=>0]) }}">
                    @if ($category_one_id == 0)
                    <div class="filter_box country_box cur">
                    @else
                    <div class="filter_box country_box">
                    @endif
                        <div class="title" style="display: flex;align-items: center;justify-content: space-between;">
                            <div><img src="{{ asset('web/picture/icon-didian.svg') }}" alt="" />全部</div>
                            <div>{{ $category_num }}</div>
                        </div>
                    </div>
                </a>

                @foreach ($category_list as $category)
                    <a href="{{ route('/', ['category_one_id'=>$category['id']]) }}">
                        @if ($category_one_id == $category['id'])
                        <div class="filter_box country_box cur">
                        @else
                        <div class="filter_box country_box">
                        @endif
                            <div class="title" style="display: flex;align-items: center;justify-content: space-between;">
                                <div><img src="{{ asset('web/icon/'.$category['title'].'@2x.png') }}" alt="" />{{ $category['title'] }}</div>
                                <div>{{ $category['num'] }}</div>
                            </div>
                        </div>
                    </a>
                @endforeach
            </form>
        </div>

        <div class="middle_area">
            <div class="middle_top_out" id="middle_top_out">
                <div class="match" id="match-count">
                    共计 100000+
                    <!-- <span class="span load">
                        <div class="dot-stretching"></div>
                    </span> -->
                    案件
                </div>
            </div>

            <div class="middle_bar">
                <div class="new_thead">
                    <div class="selector_div selector">
                        <div>
                            <div></div>
                            <div></div>
                        </div>
                    </div>

                    <div class="w100 is_show">
                        涉及金额
                        <div class="i_out"><i class="t"> </i><i class="b cur"> </i></div>
                    </div>

                    <div class="w226 is_show"></div>

                    <div class="thead_sort">
                        <span> Sort </span>

                        <ul class="sort_list">
                            <li>Latest Transaction Date</li>

                            <li>Oldest Transaction Date</li>

                            <li>Highest Total Transactions Matching Keyword</li>

                            <li>Lowest Total Transactions Matching Keyword</li>

                            <li>Highest Total Transactions</li>

                            <li>Lowest Total Transactions</li>
                        </ul>
                    </div>
                </div>
            </div>

            <div class="clear"></div>

            <!-- id="content-list" -->


            <div class="content">

            </div>
            <div class="content">
                @if($list->isEmpty())
                    <p id="no-matching-content" style="text-align: center;margin: 20px auto;">暂无符合的内容</p>
                @else
                @foreach ($list as $item)


                <div class="bg_container">
                    <div class="item" lid="o" saving="">
                        <div class="top_msg">
                            <div class="left_msg selector">
                            </div>
                            <div class="logo">
                                <!-- 用户头像 -->
                                <img src="{{ $item->user->avatar }}" alt="">
                            </div>
                            <div class="right_msg">
                                <div class="name name_flex">
                                    <div class="text">
                                        <a href="{{ route('question_details', ['id'=>$item->id]) }}" rel="nofollow">{{ $item->title }}</a>
                                        <span class="span_tag">当前</span>
                                        <span class="span_tag tag_blue">{{ $item->lawOrder->categoryOne->title }}</span>
                                    </div>
                                </div>
                                <div class="tips">
                                <span>
                                    <span class="i_out" style="width: auto">
                                        <!-- <img src="http://ai.keep1.net/uploads/country/us.png"
                                                style="margin-right: 10px;"> -->
                                        地区：{{ $item->lawOrder->address }}
                                    </span>
                                </span>
                                </div>
                            </div>
                        </div>
                        <div class="clear"></div>
                        <div class="bottom_msg">
                            <div class="new_box">
                                <div class="right_box">
                                    <p>
                                        <span class="span_title">下单时间：</span>
                                        <span class="span_value">{{ $item->created_at }}</span>
                                        <span class="span_title span_title2">案件子类型：</span>
                                        <span class="span_value">{{ $item->lawOrder->categoryTwo->title }}</span>
                                    </p>

                                    <div style="display: flex;">
                                        <div class="span_title"> </div>
                                        <div class="span_value" style="width: 600px;display: -webkit-box;
											-webkit-line-clamp: 2;
											-webkit-box-orient: vertical;
											overflow: hidden;
											text-overflow: ellipsis;
											white-space: normal;
											color: #7d8d9e;">
                                            大致情况：
                                            <span style="color: #000;">{{ $item->lawOrder->issue }}</span>
                                        </div>
                                    </div>
                                    <div class="user_info">
                                        <div class="user_box">
                                            <span>
                                                <img src="{{ asset('web/images/lawyer_avatar.png') }}" alt="">
                                            </span>
                                            <span>
                                                <img src="{{ asset('web/images/lawyer_avatar.png') }}" alt="">
                                            </span>
                                            <span>
                                                <img src="{{ asset('web/images/lawyer_avatar.png') }}" alt="">
                                            </span>
                                        </div>
                                        <span>当前已有
                                        <span style="color: #d33336;">{{ rand(5,30) }}</span>
                                        位律师查看<i class="iconfont icon-xiangyoujiantou"></i></span>
                                    </div>
                                    <div class="contact_info">
                                        <div class="item">
                                            <a href="javascript:;"><span><i class="iconfont icon-dianhua"></i>{{ substr($item->lawOrder->tel,0, 2) }}****</span></a>
                                        </div>
                                    </div>
                                </div>
                                <div class="number blod">
                                    <span class="is_show"> Total Revenue Instances： </span>
                                    <div>¥{{ $item->lawOrder->money }}</div>
                                </div>
                                <div class="btn">
                                    <a class="collect2 detail_url" href="{{ route('question_details', ['id'=>$item->id]) }}">查看详情</a>
                                    <a class="collect2 save_btn favorite " id="handleCollect0" href="javascript:;"><i></i><span>收藏</span></a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                @endforeach
                @endif
            </div>

        {{ $list->links() }} <!-- 显示分页链接 -->
            <div id="turn_page" class=""></div>

            <input type="hidden" id="CId" value="0" />

            <input type="hidden" id="page" value="1" />

            <input type="hidden" id="page_string" />

            <input type="hidden" id="Role" value="0" />

            <input type="hidden" id="Type" />

            <input type="hidden" id="list_size" value="0" />
        </div>

        <div class="right_side">
            <div class="side_box">
                <div class="title">Shortcuts</div>

                <div class="item_box">
                    <a class="item collect" href="javascript:;"> Batch Favorite </a>
                </div>

                <div class="li_box">
                    <div class="li">
                        <a href="history.html"> <i> </i>Browsing History </a>
                    </div>

                    <div class="li">
                        <a href="collect.html"> <i> </i>My Collection </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<script>
    // chosen 初始化配置

    const chosenInitParams = {
        no_results_text: "No Results Found!", //搜索无结果时显示的提示

        search_contains: true, //关键字模糊搜索。设置为true，只要选项包含搜索词就会显示；设置为false，则要求从选项开头开始匹配

        allow_single_deselect: true, //单选下拉框是否允许取消选择。如果允许，选中选项会有一个x号可以删除选项

        disable_search: false, //禁用搜索。设置为true，则无法搜索选项。

        disable_search_threshold: 0, //当选项少等于于指定个数时禁用搜索。

        inherit_select_classes: true, //是否继承原下拉框的样式类，此处设为继承

        placeholder_text_single: "Select Country", //单选选择框的默认提示信息，当选项为空时会显示。如果原下拉框设置了data-placeholder，会覆盖这里的值。

        width: "200px", //设置chosen下拉框的宽度。即使原下拉框本身设置了宽度，也会被width覆盖。

        max_shown_results: 1000, //下拉框最大显示选项数量

        display_disabled_options: false,

        single_backstroke_delete: false, //false表示按两次删除键才能删除选项，true表示按一次删除键即可删除

        case_sensitive_search: false, //搜索大小写敏感。此处设为不敏感

        group_search: false, //选项组是否可搜。此处搜索不可搜

        include_group_label_in_selected: true, //选中选项是否显示选项分组。false不显示，true显示。默认false。
    };

    // 列表入参初始化

    const listInitParams = {
        category_one_id: '',

        type:'',
        search: "",
        collection_type: "",
        Keywords: $("#search_form input[name=Keywords]").val(),

        country: "",

        state: "",

        city: "",

        postal_code: "",

        industry_screen_val: "",

        industry_screen_type: "",

        industry_screen_notAny_val: "",

        keywords_screen_val: "",

        keywords_screen_type: "tag,seo_desc,desc",

        employee_num_type: "predefine",

        employee_num_val: "",

        technology_screen_val: "",

        technology_screen_exclude_val: "",

        annual_revenue_screen_type: "",

        annual_revenue_company_type: "",

        annual_revenue_screen_val: null,

        invest_screen_val: "",

        invest_screen_type: "",

        invest_between_val: "",

        last_invest_screen_date: "",

        last_invest_screen_money: "",

        founded_year_screen_val: "",

        language_screen_val: "",

        retail_location_screen_val: "",

        company_structure_screen_val: "parent",

        contact_screen_type_val: "",

        page: 1,

        limit: 10,

        is_pagination: 1,
    };

    // 员工--预定义范围列表数据

    const employeePredefinedRangeList = [{
        id: "0",

        value: "1-10",

        count: "2.2M",
    },

        {
            id: "1",

            value: "11-20",

            count: "1.4M",
        },

        {
            id: "2",

            value: "21-50",

            count: "2.9M",
        },

        {
            id: "3",

            value: "51-100",

            count: "8.3M",
        },

        {
            id: "4",

            value: "101-200",

            count: "1.4M",
        },

        {
            id: "5",

            value: "201-500",

            count: "2.9M",
        },

        {
            id: "6",

            value: "501-1000",

            count: "8.3M",
        },

        {
            id: "7",

            value: "1001-2000",

            count: "8.3M",
        },

        {
            id: "8",

            value: "2001-5000",

            count: "1.4M",
        },

        {
            id: "9",

            value: "5001-10000",

            count: "2.9M",
        },

        {
            id: "10",

            value: "10000+",

            count: "8.3M",
        },
    ];

    // 资金

    const fundList = [{
        id: "0",

        name: "Seed",

        value: "Seed",

        count: "2.2M",
    },

        {
            id: "1",

            name: "Angel",

            value: "Angel",

            count: "1.4M",
        },

        {
            id: "2",

            name: "Venture Capital",

            value: "Venture (Round not Specified)",

            count: "2.2M",
        },

        {
            id: "3",

            name: "Series A",

            value: "Series A",

            count: "8.3M",
        },

        {
            id: "4",

            name: "Series B",

            value: "Series B",

            count: "1.4M",
        },

        {
            id: "5",

            name: "Series C",

            value: ",Series C",

            count: "2.9M",
        },

        {
            id: "6",

            name: "Series D",

            value: "Series D",

            count: "8.3M",
        },

        {
            id: "7",

            name: "Series E",

            value: "Series E",

            count: "8.3M",
        },

        {
            id: "8",

            name: "Series F",

            value: "Series F",

            count: "1.4M",
        },

        {
            id: "9",

            name: "Debt Financing",

            value: "Debt Financing",

            count: "2.9M",
        },

        {
            id: "10",

            name: "Equity Crowdfunding",

            value: "Equity Crowdfunding",

            count: "8.3M",
        },

        {
            id: "11",

            name: "Convertible Note",

            value: "Convertible Note",

            count: "1.4M",
        },

        {
            id: "12",

            name: "Private Equity",

            value: "Private Equity",

            count: "2.9M",
        },

        {
            id: "13",

            name: "Other",

            value: "Other",

            count: "8.3M",
        },
    ];

    // 语言

    const langueList = [{
        title: "Chinese",

        value: "Chinese",
    },

        {
            title: "English",

            value: "English",
        },

        {
            title: "French",

            value: "French",
        },

        {
            title: "German",

            value: "German",
        },

        {
            title: "Japanese",

            value: "Japanese",
        },

        {
            title: "Russian",

            value: "Russian",
        },

        {
            title: "Spanish",

            value: "Spanish",
        },

        {
            title: "Italian",

            value: "Italian",
        },

        {
            title: "Portuguese",

            value: "Portuguese",
        },
    ];

    // 收藏选中的id集合

    let selectCollectId = [];


    // 收藏选中的邮箱集合

    let selectCollectEmail = [];

    $(function() {

        // 加载热搜关键词
        function get_hot_keywords() {
            $.ajax({
                url: ajax_request_domain + '/base/get_hot_keywords?sellerType=enterprise',
                method: 'get',
                beforeSend: (xhr) => {
                    xhr.setRequestHeader("token", getLocalStorage('token'));
                },
                success: function(result) {
                    if (result.code === 1) {
                        const data = result.data;
                        let topHtml = '';
                        let bottomHtml = '';
                        // 顶部搜索框,底部推荐
                        $.each(data, function(index, item) {
                            topHtml += '<a class="list_keywords" href="' + item.url +
                                '" data-value="' + item.keywords + '" alt="' + item
                                    .keywords + '">' + item.keywords + '</a>';
                            bottomHtml += '<a class="item" href="' + item.url + '">';
                            bottomHtml += ' <div class="rank">' + (index + 1) + '</div>';
                            bottomHtml += ' <div class="title">' + item.keywords + '</div>';
                            bottomHtml += '</a>';
                        });
                        $('.search.boxs .tuijian').append(topHtml);
                        $('.main_con .middle_area .hot_keywords .list').html(bottomHtml);
                    }
                    if (result.code === 0) {
                        global_obj.div_mask();
                        global_obj.win_alert_auto_close(result.msg, 'fail', 2000, undefined, 0,
                            function() {
                                global_obj.div_mask(1);
                            });
                        return false;
                    }
                },
                error: function(result) {
                    if (result.status === 500) {
                        global_obj.div_mask();
                        global_obj.win_alert_auto_close('System error, please try again later',
                            'fail', 2000, undefined, 0,
                            function() {
                                global_obj.div_mask(1);
                            })
                        return false;
                    }
                    if (result.status === 401) {
                        themes_obj.loginBox('index_type');
                        return false
                    } else if (result.status === 403) {
                        themes_obj.upgradeBox('index_type');
                        return false;
                    }
                }
            });
        }
        get_hot_keywords();

        // 企业搜索--列表

        handleEnterpriseList();

        // 国家

        getCountryList();

        // // 州

        // getStateList();

        // // 城市

        // getCityList();

        // 邮编

        handleGetPostalCodeList();

        // 行业

        getIndustryList();

        // 员工--预定义范围

        handleEmployeePredefinedRange();

        // 技术--列表

        handleGetTechnologyList();

        // 资金

        handleFundPredefinedRange();

        // 语言

        handleLangueList();

        $(".chzn-select").chosen({
            ...chosenInitParams,
        });

        $(".language_box").on("hover", function() {
            $(this).find(".language_select").toggle();
        });

        $("#header .btn_list dl dd .dd_out").on(
            "click",

            "a.upgrade",
            function() {
                if ($("#AccountId").val()) {
                    themes_obj.upgradeBox("upgrade", "initiative");

                    return false;
                }
            }
        );

        $("#header .btn_list dl dd .dd_out .top .upgrade_btn").on(
            "click",

            function() {
                let _thisVersion = $(this).data("version");

                _thisVersion = _thisVersion ? _thisVersion : "";

                themes_obj.upgradeBox("upgrade", "initiative", _thisVersion);
            }
        );

        $(".buss_main .middle_area .content .item .contact_info .item").on(
            "hover",

            function() {
                $(this).find(".drop_list").toggle();

                $(this).toggleClass("cur");
            }
        );

        $('input[name="Times"]').daterangepicker();

        $('input[name="detaTimes01"]').daterangepicker({
                singleDatePicker: true,

                showDropdowns: true,

                minYear: 1901,

                maxYear: parseInt(moment().format("YYYY"), 10),
            },

            function(start, end, label) {
                var years = moment().diff(start, "years");
            }
        );

        $('input[name="detaTimes02"]').daterangepicker({
                singleDatePicker: true,

                showDropdowns: true,

                minYear: 1901,

                maxYear: parseInt(moment().format("YYYY"), 10),
            },

            function(start, end, label) {
                var years = moment().diff(start, "years");
            }
        );

        var step = 1;

        $(".buss_main .left_side .filter_box .input_item .add").on(
            "click",

            function() {
                var currentVal = parseInt(
                    $(this).parents(".input").find(".num_text").val(),

                    10
                );

                if (!isNaN(currentVal)) {
                    $(this)
                        .parents(".input")

                        .find(".num_text")

                        .val(currentVal + step);
                }
            }
        );

        $(".buss_main .left_side .filter_box .input_item .reduce").on(
            "click",

            function() {
                var currentVal = parseInt(
                    $(this).parents(".input").find(".num_text").val(),

                    10
                );

                if (!isNaN(currentVal)) {
                    $(this)
                        .parents(".input")

                        .find(".num_text")

                        .val(currentVal - step);
                }
            }
        );

        $(".main_con .middle_area .content .item .save_btn").on(
            "click",

            function() {
                if ($(this).hasClass("cancel_save")) {
                    $(this).removeClass("cancel_save");

                    $(this).find("span").html("收藏");
                } else {
                    $(this).addClass("cancel_save");

                    $(this).find("span").html("已收藏");
                }
            }
        );

        $(".account_box .menu_box label").on("click", function() {
            $(".account_box .menu_box label").removeClass("cur");

            $(this).addClass("cur");

            let this_index = $(this).index();

            $(".account_box .rows_box .rows.change")
                .find(".l")

                .each(function() {
                    if ($(this).index() == this_index) {
                        $(this).removeClass("hide");

                        $(this).find("input").attr("notnull", "notnull");
                    } else {
                        $(this).addClass("hide");

                        $(this).find("input").val("").removeAttr("notnull");
                    }
                });
        });


        //关闭登录弹窗

        $(".user_login_box .close").on("click", function() {
            if (!$(".main_con .left_side").hasClass("current"))
                global_obj.div_mask(1);

            $(".user_login_box").hide();
        });

        //优化弹窗-清晰引导注册

        //关闭优化弹窗

        $(".member_reminder_box .close,.member_reminder_box .btn_know").on(
            "click",

            function() {
                if (!$(".main_con .left_side").hasClass("current"))
                    global_obj.div_mask(1);

                $(".member_reminder_box").hide();
            }
        );

        //点击唤醒登录

        $(".member_reminder_box .account_box .rows_box .btn_submit").on(
            "click",

            function() {
                $(".member_reminder_box").hide();

                $(".user_login_box").show();
            }
        );

        //点击跳转注册

        $(".member_reminder_box .account_box .rows_box .btn_register").on(
            "click",

            function() {
                window.location.href = "register.html";
            }
        );

        //优惠弹窗-清晰引导注册

        //没有数据的企业，点击关闭/遮罩层 跳往上一页

        $("html").on(
            "click",

            "#enterprise_data_mask,.enterprise_data_box .close",

            function() {
                window.close();

                window.location.href = "/";
            }
        );

        //没有数据的企业，点击关闭/遮罩层 跳往上一页


        $(".global_alert_upgrade")
            .on("click", ".rows label", function() {
                var _this = $(this);

                $(this).parents(".rows").find("label").removeClass("cur");

                $(this).addClass("cur");

                $(this).find("input[type=radio]").attr("checked", "checked");

                $(this).siblings().find("input[type=radio]").removeAttr("checked");

                let this_time = $(
                    '.global_alert_upgrade .pay_times_box input[name="Times"]:checked'
                ).val();

                if ($(this).find("input").attr("name") == "Times") {
                    let attr_name = "";

                    if (this_time == "month") {
                        attr_name = "month_";
                    }

                    $(
                        ".global_alert_upgrade .upgrade_level_box_new_plus .price_item"
                    ).each(function() {
                        $(this)
                            .find(".price_box span.r span")

                            .html(
                                $(this)
                                    .find(".price_box span.r")

                                    .attr(attr_name + "yuan")
                            );

                        $(this)
                            .find(".price_box span.r span.price_val")

                            .html(
                                $(this)
                                    .find(".price_box span.r")

                                    .attr(attr_name + "price")
                            );
                    });

                    $(
                        '.global_alert_upgrade .upgrade_level_box_new_plus input[name="Level"]:checked'
                    ).click();

                    return false;
                }

                if ($(this).find("input").attr("name") == "Level") {
                    let scale = 1 * 100;

                    let this_p = 0;

                    if (this_time == "month") {
                        this_p =
                            Math.ceil(
                                parseFloat($(this).find(".r").attr("month_price")) * scale
                            ) / 100;
                    } else {
                        this_p =
                            Math.ceil(parseFloat($(this).find(".r").attr("price")) * scale) /
                            100;
                    }

                    let result_p = lang_obj.global.symbol + this_p.toFixed(2);

                    $(".global_alert_upgrade .rows .price").html(result_p);

                    $(".global_alert_upgrade_pay_btn .rows .price").html(result_p);

                    //优惠券
                }

                $(".of_the_public_info .payment_info .CorporateOId").html("");

                if (
                    $(
                        '.global_alert_upgrade .pay_method_box input[name="Method"]:checked'
                    ).val() == "Public"
                ) {
                    $(".global_alert_upgrade .of_the_public_info").show();

                    $(".global_alert_upgrade .pay_btn").html(
                        lang_obj.user.level.transfer
                    );

                    $(".global_alert_upgrade_pay_btn .pay_btn").html(
                        lang_obj.user.level.transfer
                    );

                } else {
                    $(".global_alert_upgrade .pay_btn").html(lang_obj.user.level.pay_now);

                    $(".global_alert_upgrade_pay_btn .pay_btn").html(
                        lang_obj.user.level.pay_now
                    );

                    $(".global_alert_upgrade .of_the_public_info").hide();
                }
            });

        if (window.__wxjs_environment == "miniprogram") {
            $(".miniprogram_alipay").remove();
        }

        //登录框、注册框、按钮变色

        $(".reg_input").each(function() {
            let register_btn_flag = false;

            if ($(this).val().length != 0) {
                register_btn_flag = true;
            }

            $(this).on("input", "", function() {
                $(this).css({
                    border: "2px solid #045afe",
                    color: "#222222"
                });

                if ($(this).next(".input_tips").length) {
                    $(this).next(".input_tips").hide();
                }

                if ($(this).val().length == 0) {
                    register_btn_flag = false;

                    $(this).css({
                        border: "1px solid #eeeeee",
                        color: "#a0a0a0"
                    });

                    $(".reg_input").each(function() {
                        if ($(this).val().length > 0 && !register_btn_flag) {
                            register_btn_flag = true;
                        }
                    });
                } else {
                    register_btn_flag = true;
                }

                if (register_btn_flag) {
                    $(".btn_submit")
                        .removeAttr("disabled")

                        .removeClass("btn_disabled")

                        .addClass("btn_no_disabled");
                } else {
                    $(".btn_submit")
                        .attr("disabled", "disabled")

                        .removeClass("btn_no_disabled")

                        .addClass("btn_disabled");
                }
            });

            $(this).on("change", "", function() {
                $(this).css("border", "1px solid #eeeeee");
            });
        });

        //图片懒加载

        $("img.lazy").lazyload({
            effect: "fadeIn",
        });

        //第一版

        img_lazy();

        //其他版

        $(window).on("scroll", function() {
            img_lazy();
        });

        function img_lazy() {
            $("img.lazy").each(function() {
                var top = $(this).offset().top;

                if (top < $(window).scrollTop() + $(window).height()) {
                    $(this).attr("src", $(this).attr("data-original"));

                    $(this).removeClass("lazy");
                }
            });
        }

        //图片懒加载
    });

    // 国家

    async function getCountryList() {
        try {
            const params = {
                level: 1,

                search: "",
            };

            const {
                code,
                msg,
                data
            } = await getAreaList(params);

            if (String(code) === "1" && data?.length) {
                $.each(data, (index, option) => {
                    $("#countrySelect").append(
                        $(`<option  data-id="${option.id}"></option>`)
                            .val(option.name_cn)
                            .text(option.name_cn)
                    );
                });

                $("#countrySelect").trigger("chosen:updated");
            }
        } catch (error) {
            console.log("get_area_list国家接口请求失败:", error);
        }
    }

    // 州

    async function getStateList(pid) {
        try {
            const params = {
                level: 2,
                pid,
                search: "",
            };

            const {
                code,
                msg,
                data
            } = await getAreaList(params);

            if (String(code) === "1" && data?.length) {
                $.each(data, (index, option) => {
                    $("#stateSelect").append(
                        $(`<option  data-id="${option.id}"></option>`)
                            .val(option.name)
                            .text(option.name)
                    );
                });

                $("#stateSelect").trigger("chosen:updated");
            }
        } catch (error) {
            console.log("get_area_list州接口请求失败:", error);
        }
    }

    // 城市

    async function getCityList(pid) {
        try {
            const params = {
                level: 3,
                pid,
                search: "",
            };

            const {
                code,
                msg,
                data
            } = await getAreaList(params);

            if (String(code) === "1" && data?.length) {
                $.each(data, (index, option) => {
                    $("#citySelect").append(
                        $(`<option  data-id="${option.id}"></option>`)
                            .val(option.name)
                            .text(option.name)
                    );
                });

                $("#citySelect").trigger("chosen:updated");
            }
        } catch (error) {
            console.log("get_area_list城市接口请求失败:", error);
        }
    }

    // 邮编

    async function handleGetPostalCodeList() {
        try {
            const params = {
                search: "",
            };

            const {
                code,
                msg,
                data
            } = await getPostalCodeList(params);

            if (String(code) === "1" && data?.length) {
                $.each(data, (index, option) => {
                    $("#postalCode").append(
                        $("<option></option>").val(option.val).text(option.val)
                    );
                });

                $("#postalCode").trigger("chosen:updated");
            }
        } catch (error) {
            console.log("get_postal_code_list邮编接口请求失败:", error);
        }
    }

    // 行业列表

    async function getIndustryList() {
        const params = {
            search: "",
        };

        try {
            const {
                code,
                msg,
                data
            } = await getIndustryLists(params);

            if (String(code) === "1" && data?.length) {
                $.each(data, (index, option) => {
                    $("#industrySelect").append(
                        $("<option></option>").val(option.id).text(option.name)
                    );

                    $("#industryEliminate").append(
                        $("<option></option>").val(option.id).text(option.name)
                    );
                });

                $("#industrySelect").trigger("chosen:updated");

                $("#industryEliminate").trigger("chosen:updated");
            }
        } catch (error) {
            console.log("get_industry_list接口请求失败:", error);
        }
    }

    // 雇员--预定义范围

    let employeePredefinedRangeArr = [];

    function handleEmployeePredefinedRange() {
        $.each(employeePredefinedRangeList, (index, item) => {
            $("#employeePredefinedRange").append(`

              <div class="check_item" id="employeePredefinedRange${item.id}" dataValue="${item.value}">

                <label>

                  <input

                    type="checkbox"

                    name="predefineCheckbox"

                    value="${item.value}"

                  />${item.value}

                </label>

                <span>(${item.count})</span>

              </div>

            `);

            const $employeePredefinedRange = $(`#employeePredefinedRange${item.id}`);

            $employeePredefinedRange.unbind("click").on("click", (event) => {
                if (!$(event.target).is("input")) {
                    return;
                }

                const val = $employeePredefinedRange.attr("dataValue");

                if (!employeePredefinedRangeArr.includes(val)) {
                    employeePredefinedRangeArr.push(val);
                } else if (employeePredefinedRangeArr.includes(val)) {
                    employeePredefinedRangeArr = employeePredefinedRangeArr?.filter(
                        (fitem) => fitem !== val
                    );
                }

                listInitParams["employee_num_val"] =
                    employeePredefinedRangeArr?.join(",");

                handleEnterpriseList();
            });
        });
    }

    // 点击全部
    function ClickToTrigger(index) {
        listInitParams.category_one_id= index;
        listInitParams.type = index;
        handleEnterpriseList();
    }
    // 员工---预定义范围、自定义范围、员工人数不详

    function handleEmployeeRadio(fild, val, $this) {
        listInitParams[fild] = val;

        handleEnterpriseList();
    }

    // 员工--自定义范围

    // let employeeMinVal = null;

    // let employeeMaxVal = null;

    // function handleEmployeeStep(step, type, that) {
    //   setTimeout(() => {
    //     const val = $(that?.target).parents(".input").find(".num_text").val();

    //     if (type === "min") {
    //       employeeMinVal = val;
    //     }

    //     if (type === "max") {
    //       employeeMaxVal = val;
    //     }

    //     if (Number(employeeMinVal) <= Number(employeeMaxVal)) {
    //       listInitParams["employee_num_val"] = `${employeeMinVal || 0}-${
    //         employeeMaxVal || 0
    //       }`;

    //       setTimeout(() => {
    //         handleEnterpriseList();
    //       }, 500);
    //     }
    //   }, 100);
    // }

    function handleEmployeeStep(e, mode) {
        const min = $('#employeeStepMin').val()
        const max = $('#employeeStepMax').val()
        if (Number(min) <= Number(max)) {
            listInitParams["employee_num_val"] = `${min || 0}-${max || 0}`;
            if (e.keyCode === 13) {
                setTimeout(() => {
                    handleEnterpriseList();
                }, 500);
            }
        }
    }

    // 技术列表

    async function handleGetTechnologyList() {
        const params = {
            search: "",
        };

        try {
            const {
                code,
                msg,
                data
            } = await getTechnologyList(params);

            if (String(code) === "1" && data?.length) {
                $.each(data, (index, option) => {
                    $("#technologySelect").append(
                        $("<option></option>").val(option.id).text(option.name)
                    );

                    $("#technologyExcludeSelect").append(
                        $("<option></option>").val(option.id).text(option.name)
                    );
                });

                $("#technologySelect").trigger("chosen:updated");

                $("#technologyExcludeSelect").trigger("chosen:updated");
            }
        } catch (error) {
            console.log("get_industry_list接口请求失败:", error);
        }
    }

    // 列表请求
    async function handleEnterpriseList() {
        return;
        const params = {
            ...listInitParams,
        };

        $("#content-list").html("");
        showLoading("#content-list");

        try {
            const {
                code,
                msg,
                data = {
                    total: 0,
                    list: [],
                    page: 'null'
                },
            } = await getEnterpriseList(params);

            if (String(code) === "1") {
                const {
                    total = 0, list = [], page = ""
                } = data;
                hideLoading();
                $("#match-count").html(`

               <div class="match">

                Total
                ${total}

                Companies
              </div>`);

                const newList =
                    list?.map((mitem) => {
                        return {
                            ...mitem,
                        };
                    }) || [];

                $.each(newList, (index, item) => {
                    console.log(item);
                    $("#content-list").append(
                        `
<div class="bg_container">
	<div class="item" lid="o" saving="">
		<div class="top_msg">
			<div class="left_msg selector">
			</div>
			<div class="logo">
				<img src="${item.user.avatar}" alt="">
			</div>
			<div class="right_msg">
				<div class="name name_flex">
					<div class="text">
						<a href="./PacifiCap-Properties-Group.html"
						   rel="nofollow">${item.title}</a>
					</div>
				</div>
				<div class="tips">
					<span>
						<span class="i_out" style="width: auto">地区：${item.law_order.address}</span>
					</span>
				</div>
			</div>
		</div>
		<div class="clear"></div>
		<div class="bottom_msg">
			<div class="new_box">
				<div class="right_box">
					<p>
						<span class="span_title">案件类型：</span>
						<span class="span_value">${item.law_order.category_one.title}</span>
						<span class="span_title span_title2">案件子类型：</span>
						<span class="span_value">${item.law_order.category_two.title}</span>
					</p>
					<p>
						<span class="span_title"> 诉求：</span>
						<span class="span_value">${item.law_order.appeal}</span>
					</p>
				</div>
				<div class="number blod">
					<span class="is_show"> Total Revenue Instances： </span>
					<div>￥${item.law_order.money}</div>
				</div>
				<div class="btn">
		            <a class="collect2 detail_url" href="/question/details?id=${item.id}">查看详情</a>
				</div>
			</div>
		</div>
	</div>
</div>
              `
                    );

                    // 收藏

                    $(`#handleCollect${index}`).click(() => {
                        handleCollect(item, index, $(`#handleCollect${index}`));
                    });

                    // 选中当前

                    $(`#selectId${index}`).click(function() {
                        const id = $(this).val();

                        const isCheked = $(this).is(":checked");

                        if (isCheked && !selectCollectId.includes(id)) {
                            selectCollectId.push(id);
                        }

                        if (!isCheked && selectCollectId.includes(id)) {
                            selectCollectId = selectCollectId?.filter((item) => {
                                return item !== id;
                            });
                        }
                    });
                });

                // 分页

                $("#turn_page").html(page);
                if (total === 0) {
                    handleErrContent("暂无符合的内容");
                }
            } else {
                handleErrContent(msg);
            }

            if (code === 50008) {
                handleErrContent(msg);
            }
        } catch (result) {
            handleErrContent();
            if (result.status === 500) {
                global_obj.div_mask();
                global_obj.win_alert_auto_close(
                    "System error, please try again later",
                    "fail",
                    2000,
                    undefined,
                    0,
                    function() {
                        global_obj.div_mask(1);
                    }
                );
                return false;
            }
            if (result.status === 401) {
                themes_obj.loginBox("index_type");
                return false;
            } else if (result.status === 403) {
                themes_obj.upgradeBox("index_type");
                return false;
            }
            console.log("get_enterprise_list接口", result);
        }
    }

    function handleErrContent(msg) {
        $("#turn_page").html(null);
        $("#content-list").html(
            `<p id="no-matching-content" style="text-align: center;margin: 20px auto;">${
                msg ? msg : "暂无符合的内容"
            }</p>`
        );
        $("#match-count").html(`

              <div class="match">



            </div>`);
        hideLoading();
    }

    // 分页点击

    $("#turn_page,.alert_turn_page").on("click", "a", function() {
        $("#content-list").html("");
        let page = $(this).data("page");

        if ($(this).parents(".jump").length) {
            page = $('input[name="jump_page"]').val();
            if (
                page == "" ||
                page == undefined ||
                page == "undefined" ||
                isNaN(page) ||
                page <= 0 ||
                page > parseInt($('input[name="jump_page"]').attr("max"))
            ) {
                page = 1;
            }
        }

        //  滚动到列表顶部

        $("html, body").animate({
            scrollTop: $("#middle_top_out").offset().top,
        }, {
            duration: 500,
            easing: "swing"
        });

        $('#search_form input[name="page"]').val(page);
        listInitParams.page = page;
        handleEnterpriseList();
        return false;
    });

    // $(document).on("ready", function () {
    //   $('#search_form input[name="page"]').val(1);
    //   handleEnterpriseList();
    // });

    // 全选

    function handleSelectAll(e) {
        selectCollectId = [];
        selectCollectEmail = []

        if (!$(".selector_box").hasClass("open")) {
            $("#content-list")
                .children(".bg_container")

                .each(function() {
                    const id = $(this).children().find('input[name="select"]').val();

                    selectCollectId.push(id);
                    const email = $(this).children().find('input[name="select"]').data('email');
                    if (email) {
                        selectCollectEmail.push(email)
                    }
                });
        }
    }

    // 列表收藏

    async function handleListcollect(mode, that) {

        const params = {
            collect_ids: selectCollectId?.join(",")
        };

        if (selectCollectId) {
            try {
                const {
                    code,
                    msg,
                    data
                } = await enterpriseCollect(params);

                if (String(code) === "1") {


                    selectCollectId = [];
                    if (mode === 'single') {
                        if (data === true) {
                            if (that) {
                                if (that.hasClass('cancel_save')) {
                                    that.removeClass('cancel_save');
                                    that.addClass('favorite');
                                    that.find('span').html('收藏');
                                } else if (that.hasClass('favorite')) {
                                    that.removeClass('favorite');
                                    that.addClass('cancel_save');
                                    that.find('span').html('已收藏');
                                }
                            }

                        }
                    } else {

                        global_obj.win_alert_auto_close(msg, 'success', 2000, undefined, 0, function() {
                            handleEnterpriseList();
                            resetSelection()
                        })
                    }



                }
            } catch (error) {
                console.log("enterprise_collect接口", error);
            }
        }
    }

    // 全选--收藏、群发邮件重置

    function resetSelection() {
        $(".selector_box").removeClass("open")
        $("input[name='select_all']").prop('checked', false);
        let text = lang_obj.clue.list.batch;
        const select = $("body").find(
            ".middle_area .selector input[type=checkbox][name=select]"
        );

        let span = $(".selector input[type=checkbox][name=select_all]");
        span.after("<span>" + text + "</span>");
    }

    // 收藏

    async function handleCollect(item, index, that) {
        selectCollectId.push(item.id);
        item.is_collect = !item.is_collect
        handleListcollect('single', that);

        // const params = { enterprise_id: item.id };

        // try {

        //   const { code, msg, data } = await userEnterpriseCollect(params);

        //   if (String(code) === "1") {

        //     const that = $(`#handleCollect${index}`);

        //     if (that.hasClass("cancel_save")) {

        //       that.removeClass("cancel_save");

        //       that.find("span").html("Collection");

        //     } else {

        //       that.addClass("cancel_save");

        //       that.find("span").html("Favorited");

        //     }

        //   }

        // } catch (error) {

        //   console.log("user_employee_collect接口", error);

        // }
    }

    // 搜索姓名

    $("#employee_name").bind("keydown", "down", (event) => {
        let val = event?.target?.value;
        $("#turn_page").html("");
        if (event.keyCode === 13) {
            listInitParams.search = val;

            handleEnterpriseList();
        }
    });

    // 国家地点（国家、州、城市、邮编）

    $(".change-area").on("change", (e, params) => {
        let modeId = e?.currentTarget?.id;
        const selectId = e?.currentTarget?.selectedOptions?.[0]?.dataset?.id;

        let selectedValues = $(`#${modeId}`).val();

        if (modeId === "countrySelect") {
            // 国家

            listInitParams.country = selectedValues;
            if (!selectedValues) {
                listInitParams.state = null;
                listInitParams.city = null;
            }
            $("#stateSelect").html('<option value=""></option>');
            $("#citySelect").html('<option value=""></option>');
            $("#stateSelect").trigger("chosen:updated");
            $("#citySelect").trigger("chosen:updated");
            getStateList(selectId);
        }

        if (modeId === "stateSelect") {
            $("#citySelect").html('<option value=""></option>');
            $("#citySelect").trigger("chosen:updated");
            listInitParams.state = selectedValues;
            listInitParams.city = null;
            getCityList(selectId);
        }

        if (modeId === "citySelect") {
            listInitParams.city = selectedValues;
        }

        if (modeId === "postalCode") {
            listInitParams.postal_code = selectedValues?.join(",");
        }

        setTimeout(() => {
            handleEnterpriseList();
        }, 100);
    });

    // 行业选择

    $("#industrySelect").on("change", (e, params) => {
        let modeId = e?.currentTarget?.id;

        let selectedValues = $(`#${modeId}`).val();

        listInitParams["industry_screen_val"] = selectedValues?.join(",");

        setTimeout(() => {
            handleEnterpriseList();
        }, 100);
    });

    // 技术选择

    $("#technologySelect").on("change", (e, params) => {
        let modeId = e?.currentTarget?.id;

        let selectedValues = $(`#${modeId}`).val();

        listInitParams["technology_screen_val"] = selectedValues?.join(",");

        setTimeout(() => {
            handleEnterpriseList();
        }, 100);
    });

    // 技术选择--排除所有

    $("#technologyExcludeSelect").on("change", (e, params) => {
        let modeId = e?.currentTarget?.id;

        let selectedValues = $(`#${modeId}`).val();

        listInitParams["technology_screen_exclude_val"] = selectedValues?.join(",");

        setTimeout(() => {
            handleEnterpriseList();
        }, 100);
    });

    // 行业--不是任何、已知、未知

    function handleIndustryTabs(fild, val, $this) {
        listInitParams[fild] = val;

        if (val !== "notAny") {
            handleEnterpriseList();
        }
    }

    // 行业--不是任何

    $("#industryEliminate").on("change", (e, params) => {
        let modeId = e?.currentTarget?.id;

        let selectedValues = $(`#${modeId}`).val();

        listInitParams["industry_screen_notAny_val"] = selectedValues?.join(",");

        setTimeout(() => {
            handleEnterpriseList();
        }, 100);
    });

    // 关键词

    $("#keywordSelect").bind("keydown", "down", (event) => {
        let val = event?.target?.value;

        if (event.keyCode === 13) {
            listInitParams.keywords_screen_val = val;

            handleEnterpriseList();
        }
    });

    // let searchPositionFlag = false;

    // $(".keyword-select").on("chosen:no_results", (e, params) => {

    //   const val = $(".keyword-select").find(".chosen-drop .chosen-results .no-results span").text();

    //   console.log(val);

    //   if (!searchPositionFlag) {

    //     searchPositionFlag = true;

    //     $(this).bind("keydown", "down", (event) => {

    //       if (event.keyCode === 13) {

    //         setTimeout(() => {

    //           listInitParams["keywords_screen_val"] = val;

    //           handleEnterpriseList();

    //         }, 500);

    //       }

    //     });

    //   }

    //   setTimeout(() => {

    //     searchPositionFlag = false;

    //   }, 600);

    // });

    //  关键词--高级设置

    let keywordCheckArr = ["tag", "seo_desc", "desc"];

    function handleKeywordCheckBox(fild, val, $this) {
        if (!$(event.target).is("input")) {
            return;
        }

        let isCheck = $this?.target?.checked;

        if (isCheck && !keywordCheckArr.includes(val)) {
            keywordCheckArr.push(val);
        } else if (!isCheck && keywordCheckArr.includes(val)) {
            keywordCheckArr = keywordCheckArr?.filter((item) => item !== val);
        }

        listInitParams[fild] = keywordCheckArr?.join(",");

        handleEnterpriseList();
    }

    // 收入 --介于、已知、未知

    function handleIncomeTabs(fild, val, $this) {
        listInitParams[fild] = val;

        handleEnterpriseList();
    }

    // 收入--介于

    // let incomeMinVal = null;

    // let incomeMaxVal = null;

    // function handleStep(step, type, that) {
    //   setTimeout(() => {
    //     const val = $(that?.target).parents(".input").find(".num_text").val();

    //     if (type === "min") {
    //       incomeMinVal = val;
    //     }

    //     if (type === "max") {
    //       incomeMaxVal = val;
    //     }

    //     if (Number(incomeMinVal) <= Number(incomeMaxVal)) {
    //       listInitParams["annual_revenue_screen_val"] = `${incomeMinVal || 0}-${
    //         incomeMaxVal || 0
    //       }`;

    //       setTimeout(() => {
    //         handleEnterpriseList();
    //       }, 500);
    //     }
    //   }, 100);
    // }

    function handleIncomeStep(e, mode) {
        const min = $('#incomeStepMin').val()
        const max = $('#incomeStepMax').val()
        if (Number(min) <= Number(max)) {
            listInitParams["annual_revenue_screen_val"] = `${min || 0}-${max || 0}`;
            if (e.keyCode === 13) {
                setTimeout(() => {
                    handleEnterpriseList();
                }, 500);
            }
        }
    }

    //  收入--介于--私人公司、上市公司

    let IncomeCheckArr = [];

    function handleIncomeCheckBox(fild, val, $this) {
        if (!$(event.target).is("input")) {
            return;
        }

        let isCheck = $this?.target?.checked;

        if (isCheck && !IncomeCheckArr.includes(val)) {
            IncomeCheckArr.push(val);
        } else if (!isCheck && IncomeCheckArr.includes(val)) {
            IncomeCheckArr = IncomeCheckArr?.filter((item) => item !== val);
        }

        listInitParams[fild] = IncomeCheckArr?.join(",");

        handleEnterpriseList();
    }

    // 资金

    let fundArr = [];

    function handleFundPredefinedRange() {
        $.each(fundList, (index, item) => {
            $("#fund").append(`

              <p id="fundArr${item.id}" dataValue="${item.value}">

                <label>

                  <input

                    type="checkbox"

                    name="predefineCheckbox"

                    value="${item.value}"

                  />${item.name}

                </label>

                <span>(${item.count})</span>

              </p>

            `);

            const $employeePredefinedRange = $(`#fundArr${item.id}`);

            $employeePredefinedRange.unbind("click").on("click", (event) => {
                if (!$(event.target).is("input")) {
                    return;
                }

                const val = $employeePredefinedRange.attr("dataValue");

                if (!fundArr.includes(val)) {
                    fundArr.push(val);
                } else if (fundArr.includes(val)) {
                    fundArr = fundArr?.filter((fitem) => fitem !== val);
                }

                listInitParams["invest_screen_val"] = fundArr?.join(",");

                handleEnterpriseList();
            });
        });
    }

    // 资金--介于、已知、未知

    function handleFundTabs(fild, val, $this) {
        listInitParams[fild] = val;

        handleEnterpriseList();
    }

    //资金--介于--资金总额范围

    // let totalFundsMinVal = null;

    // let totalFundsMaxVal = null;

    // function handleTotalFunds(step, type, that) {
    //   setTimeout(() => {
    //     const val = $(that?.target).parents(".input").find(".num_text").val();

    //     if (type === "min") {
    //       totalFundsMinVal = val;
    //     }

    //     if (type === "max") {
    //       totalFundsMaxVal = val;
    //     }

    //     if (Number(totalFundsMinVal) <= Number(totalFundsMaxVal)) {
    //       listInitParams["invest_between_val"] = `${totalFundsMinVal || 0}-${
    //         totalFundsMaxVal || 0
    //       }`;

    //       setTimeout(() => {
    //         handleEnterpriseList();
    //       }, 500);
    //     }
    //   }, 100);
    // }

    function handleFundsStep(e, mode) {
        const min = $('#fundsStempMin').val()
        const max = $('#fundsStempMax').val()
        if (Number(min) <= Number(max)) {
            listInitParams["invest_between_val"] = `${min || 0}-${max || 0}`;
            if (e.keyCode === 13) {
                setTimeout(() => {
                    handleEnterpriseList();
                }, 500);
            }
        }
    }


    // 资金--最后一轮融资日期

    let fundStarDate = null;

    let fundEndDate = null;

    $("#fundStarDate").on("apply.daterangepicker", (ev, picker) => {
        fundStarDate = picker.startDate.format("YYYY-MM-DD");

        if (fundStarDate && fundEndDate) {
            listInitParams[
                "last_invest_screen_date"
                ] = `${fundStarDate},${fundEndDate}`;

            handleEnterpriseList();
        }
    });

    $("#fundEndDate").on("apply.daterangepicker", (ev, picker) => {
        fundEndDate = picker.startDate.format("YYYY-MM-DD");

        if (fundStarDate && fundEndDate) {
            listInitParams[
                "last_invest_screen_date"
                ] = `${fundStarDate},${fundEndDate}`;

            handleEnterpriseList();
        }
    });

    // 上一轮融资金额（美元）

    // let fundMinVal = null;

    // let fundMaxVal = null;

    // function handleFundStep(step, type, that) {
    //   setTimeout(() => {
    //     const val = $(that?.target).parents(".input").find(".num_text").val();

    //     if (type === "min") {
    //       fundMinVal = val;
    //     }

    //     if (type === "max") {
    //       fundMaxVal = val;
    //     }

    //     if (Number(fundMinVal) <= Number(fundMaxVal)) {
    //       listInitParams["last_invest_screen_money"] = `${fundMinVal || 0},${
    //         fundMaxVal || 0
    //       }`;

    //       setTimeout(() => {
    //         handleEnterpriseList();
    //       }, 500);
    //     }
    //   }, 100);
    // }

    function handleFundsStepPre(e, mode) {
        const min = $('#fundStepPreMin').val()
        const max = $('#fundStepPreMax').val()
        if (Number(min) <= Number(max)) {
            listInitParams["last_invest_screen_money"] = `${min || 0},${max || 0}`;
            if (e.keyCode === 13) {
                setTimeout(() => {
                    handleEnterpriseList();
                }, 500);
            }
        }
    }

    // 成立时间

    $("#establishmentTime").on(
        "apply.daterangepicker",

        function(ev, picker) {
            var start = picker.startDate.format("YYYY-MM-DD");

            var end = picker.endDate.format("YYYY-MM-DD");

            listInitParams["founded_year_screen_val"] = `${start},${end}`;

            setTimeout(() => {
                handleEnterpriseList();
            }, 100);
        }
    );

    // 语言

    function handleLangueList() {
        $.each(langueList, (index, item) => {
            $("#langueList").append(
                `<div class="radio_box">

                      <label class="langueCheck" data-value="${item.value}"

                        ><input type="radio" name="langue" value="${item.value}"  />

                        ${item.title}</label

                      >

                    </div>

                `
            );
        });

        $(".langueCheck").on("click", (e) => {
            if (!$(event.target).is("input")) {
                return;
            }

            listInitParams["language_screen_val"] = e?.target?.value;

            setTimeout(() => {
                handleEnterpriseList();
            }, 100);
        });
    }

    // 零售

    // let retailVal = null;

    // let retailMaxVal = null;

    // function handleRetailStep(step, type, that) {
    //   setTimeout(() => {
    //     const val = $(that?.target).parents(".input").find(".num_text").val();

    //     if (type === "min") {
    //       retailVal = val;
    //     }

    //     if (type === "max") {
    //       retailMaxVal = val;
    //     }

    //     if (Number(retailVal) <= Number(retailMaxVal)) {
    //       listInitParams["retail_location_screen_val"] = `${retailVal || 0},${
    //         retailMaxVal || 0
    //       }`;

    //       setTimeout(() => {
    //         handleEnterpriseList();
    //       }, 500);
    //     }
    //   }, 100);
    // }

    function handleRetailStep(e, mode) {
        const min = $('#retailStepMin').val()
        const max = $('#retailStepMax').val()
        if (Number(min) <= Number(max)) {
            listInitParams["retail_location_screen_val"] = `${min || 0},${max || 0}`;
            if (e.keyCode === 13) {
                setTimeout(() => {
                    handleEnterpriseList();
                }, 500);
            }
        }
    }

    // 公司结构

    function handleCorporateStructure(fild, val, $this) {
        listInitParams[fild] = val;

        handleEnterpriseList();
    }

    // 联系方式

    let ContactInformationCheckArr = [];

    function handleContactInformation(fild, val, $this) {
        if (!ContactInformationCheckArr.includes(val)) {
            ContactInformationCheckArr.push(val);
        } else if (ContactInformationCheckArr.includes(val)) {
            ContactInformationCheckArr = ContactInformationCheckArr?.filter(
                (item) => item !== val
            );
        }

        listInitParams[fild] = ContactInformationCheckArr?.join(",");

        handleEnterpriseList();
    }

    // 搜索

    function searchBtn() {
        // const vals = {
        //   0: "search",

        //   1: "industry_screen_val",

        //   2: "company_is_have_screen_val",
        // };

        let keywork = $("#search_form input[name=Keywords]").val();

        let tabsVal = $("#search_form .input_box .trans .current").data("change");

        // Object.values(vals).forEach((val) => {
        //   listInitParams[val] = "";
        // });

        listInitParams["collection_type"] = tabsVal;
        listInitParams["Keywords"] = keywork;
        // listInitParams[vals[tabsVal]] = keywork;

        handleEnterpriseList();
        // global_obj.div_mask();
    }


    // 群发邮件

    function handleListSendEmail() {
        const emails = selectCollectEmail?.join(",")
        if (emails) {
            handleEnterpriseList();
            resetSelection()
            window.open(`/email-SendMail.html?emails=${emails}`, '_blank')
            setTimeout(() => {
                selectCollectEmail = []
            }, 200)
        }

    }
</script>


<div id="footer">
{{--    <div class="wide">--}}
{{--        <div class="footer_friend">--}}
{{--            <span>Friendly Links:</span>--}}
{{--            <a href="https://www.noxa20.cn" target="_blank" title="NOXA20">NOXA20</a>--}}
{{--            <em>|</em> <a href="https://www.zhiyanxuan.com" target="_blank" title="家教">家教</a>--}}
{{--            <em>|</em> <a href="https://www.chat2024.cn" target="_blank" title="chatGPT入口">chatGPT入口</a>--}}
{{--            <em>|</em> <a href="http://www.doryang1.com" target="_blank" title="56书库">56书库</a>--}}
{{--            <em>|</em> <a href="https://www.lijiajj.com" target="_blank" title="海关数据查询平台">海关数据查询平台</a>--}}
{{--            <em>|</em> <a href="https://www.zuoooo.com" target="_blank" title="海关数据查询平台">海关数据查询平台</a>--}}
{{--        </div>--}}
{{--    </div>--}}
{{--    <div class="wide">--}}
{{--        <div class="footer_bottom">--}}
{{--            <div class="footer_left">--}}
{{--                <div class="logo">--}}
{{--                    <img src="{{ asset('web/picture/logo.svg') }}" alt="Keepoe" />--}}
{{--                </div>--}}
{{--                <div class="copyright">--}}
{{--                    <em>--}}
{{--                        |--}}
{{--                    </em> <span>重庆知站科技有限公司©Copyright </span> <span>Registration No.:<a--}}
{{--                            href="https://beian.miit.gov.cn">渝ICP备2020013150号-13</a>--}}
{{--							</span>--}}
{{--                </div>--}}
{{--            </div>--}}
{{--            <div class="footer_right">--}}
{{--                <a href="javascript:;">--}}
{{--                    Tutorial Videos </a> <em>|--}}
{{--                </em> <a href="/about">About Us </a> <em>|--}}
{{--                </em> <a href="/blog">Knowledge Base </a> <em>|--}}
{{--                </em> <a href="javascript:;">Privacy Policy </a> <em>|--}}
{{--                </em> <a href="javascript:;">User Agreement </a>--}}
{{--            </div>--}}

{{--        </div>--}}
{{--    </div>--}}
</div>

<!-- <div class="user_login_box">
    <a href="javascript:;" class="close" aria-label="class">
    </a>
    <div class="account_box">
        <div class="menu_box">
            <label class="cur no_b">
                Welcome to Use Keepoe </label>
        </div>
        <div class="rows_box">
            <form id="global_login_form" method="post" action="/user/login">
                <input type="hidden" name="__token__" value="">
                <div class="rows change">
                    <div class="input">
                        <div class="l">
                            <input type="text" name="Phone" placeholder="Enter Phone Number" notnull=""
                                autocomplete="off" />
                            <div class="input_tips">
                                Enter Phone Number </div>
                        </div>
                    </div>
                </div>
                <div class="rows">
                    <div class="input rea">
                        <a href="forgot.html" class="fix_btn">
                            Forgot Password </a>
                        <input type="password" name="Password" placeholder="Enter Password" notnull=""
                            autocomplete="off" />
                        <div class="input_tips">
                            Enter Password </div>
                    </div>
                </div>
                <div class="rows last">
                    <div class="input">
                        <input type="submit" class="btn_submit" value="登录" /><a href="/register.html"
                            target="_blank" class="reg_btn">No Account? Register for Free </a>
                        <input type="hidden" name="do_action" value="user.login" />
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<div class="member_reminder_box">
    <a href="javascript:;" class="close" aria-label="class">
    </a>
    <div class="account_box">
        <div class="reminder_menu_box">
            <label class="no_b">
                Add Dedicated Customer Service, Try Advanced Features for Free </label>
            <div class="no_kf">
                <img src="static/picture/qrcode_b.png" alt="AMY" /> <label class="tips">Scan with WeChat
                </label>
            </div>
        </div>
        <div class="rows_box">
            <input type="button" class="btn_know" value="Got It" />
        </div>
    </div>
</div>
<div class="enterprise_data_box">
    <a href="javascript:;" class="close" aria-label="class"></a>
    <div class="list_empty">
        <div class="img">
            <img src="static/picture/alert_warn.png" alt="alert_warn" /> <span>This Company’s Data Is Not
                Publicly Available </span>
        </div>
        <div class="consultant_box">
            <div class="c_box_content">
                <div class="c_box_title">
                    Discover More Quality Buyers </div>
                <div class="c_box_desc">
                    Contact Us<span>Customer Service </span>
                </div>
                <div class="c_box_phone line">
                    Dedicated Hotline:<span>
                    </span>
                </div>
                <div class="c_box_email line">
                    Official Email:<span>
                    </span>
                </div>
            </div>
            <div class="c_box_qrcode">
                <div class="qrcode">
                    <img src="static/picture/qrcode.png" alt="AMY" />
                </div>
                <div class="c_q_desc">
                    Scan to Contact Customer Service </div>
            </div>
        </div>
    </div>
</div>
<div class="global_alert_upgrade">
    <div class="title">
        <span class="activity_img">
            <span class="_20">
                Subscribe to Premium Membership, Enjoy Exclusive Privileges, and Access Massive Trade Data
            </span>
            <br /><span class="_18">New Year Special Offer: 60% Discount for the First 10 Users </span>
        </span> <a href="javascript:;" class="close" aria-label="class">
        </a>
        <div class="clear">
        </div>
    </div>
    <div class="price_change_out">
        <div class="price_change">
            <span class="show_year cur">
                Annual Payment<em>50% Off </em>
            </span> <span class="show_month">Monthly Payment </span>
        </div>
    </div>
    <div class="rows spec">
        <div class="name initiative">
            Choose Version<a href="/price">查看全部特权&版本对比
            </a> </div>
        <div class="upgrade_level_box_new_plus">
            <label class="price_item cur">
                <div>
                    <div class="level_name">
                        黄金会员 </div>
                    <div class="level_desc">
                        Unlimited Contact Collection </div>
                </div>
                <div class="level_price_box_11">
                    <div class="level_price">
                        <span class="price_box">
                            <span class="r" o_price="1608" price="1608" month_price="268" yuan="USD/year"
                                month_yuan="USD/Month">
                                <span class="price_val">
                                    1608 </span>
                                <span>USD/year</span>
                            </span>
                        </span>
                    </div>
                </div>
                <input type="radio" name="Level" value="10" checked="" />
            </label>
            <label class="price_item ">
                <div>
                    <div class="level_name">
                        铂金会员 </div>
                    <div class="level_desc">
                        Unlimited Contact Collection </div>
                </div>
                <div class="level_price_box_11">
                    <div class="level_price">
                        <span class="price_box">
                            <span class="r" o_price="2808" price="2808" month_price="468" yuan="USD/year"
                                month_yuan="USD/Month">
                                <span class="price_val">
                                    2808 </span>
                                <span>USD/year</span>
                            </span>
                        </span>
                    </div>
                </div>
                <input type="radio" name="Level" value="20" checked="" />
            </label>
            <label class="price_item ">
                <div>
                    <div class="level_name">
                        黑金会员 </div>
                    <div class="level_desc">
                        Unlimited Contact Collection </div>
                </div>
                <div class="level_price_box_11">
                    <div class="level_price">
                        <span class="price_box">
                            <span class="r" o_price="3588" price="3588" month_price="598" yuan="USD/year"
                                month_yuan="USD/Month">
                                <span class="price_val">
                                    3588 </span>
                                <span>USD/year</span>
                            </span>
                        </span>
                    </div>
                </div>
                <input type="radio" name="Level" value="30" checked="" />
            </label>
            <label class="price_item ">
                <div>
                    <div class="level_name">
                        钻石会员 </div>
                    <div class="level_desc">
                        Unlimited Contact Collection </div>
                </div>
                <div class="level_price_box_11">
                    <div class="level_price">
                        <span class="price_box">
                            <span class="r" o_price="5288" price="5288" month_price="868" yuan="USD/year"
                                month_yuan="USD/Month">
                                <span class="price_val">
                                    5288 </span>
                                <span>USD/year</span>
                            </span>
                        </span>
                    </div>
                </div>
                <input type="radio" name="Level" value="40" checked="" />
            </label>
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="rows hide">
        <div class="name">
            Validity </div>
        <div class="pay_times_box">
            <label class="cur">
                <span class="l">
                    Annual Payment </span>
                <input type="radio" name="Times" value="year" checked="" />
                <span class="clear">
                </span>
            </label> <label>
                <span class="l">
                    Monthly Payment</span>
                <input type="radio" name="Times" value="month" /> <span class="clear"></span>
            </label>
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="rows">
        <div class="name">
            Payment Method </div>
        <div class="pay_method_box">
            <label class="miniprogram_alipay cur">
                <span class="l">Alipay</span>
                <input type="radio" name="Method" value="alipay" checked="" />
                <span class="clear"></span>
            </label>
            <label>
                <span class="l">WeChat</span>
                <input type="radio" name="Method" value="wechat" /> <span class="clear"></span>
            </label>
            <label>
                <span class="l">Stripe</span>
                <input type="radio" name="Method" value="stripe" /> <span class="clear"></span>
            </label>
            <label class="of_the_public">
                <span class="l">Bank Transfer</span>
                <input type="radio" name="Method" value="public" /> <span class="clear"></span>
            </label>
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="rows price_bottom_hide">
        <div class="name">
            Fee </div>
        <div class="price">
            ￥1608.00
        </div>
        <div class="discounted">
        </div>
    </div>
    <div class="rows of_the_public_info">
        <div class="payment_info">
            <div class="t">
                <span>
                    Payment Information </span>
            </div>
            <div class="m">
                <div class="item">
                    <span>
                        Company Name: </span> <span>重庆知站科技有限公司 </span>
                </div>
                <div class="item">
                    <span>
                        Account Number: </span> <span>50050122680000000033 </span>
                </div>
                <div class="item">
                    <span>
                        Bank Name: </span> <span>中国建设银行股份有限公司开州支行龙锦名都分理处 </span>
                </div>
            </div>
            <div class="b">
                <span>
                    * Please Note the Item Details in the Remarks:<em class="CorporateOId">
                    </em>
                </span>
            </div>
        </div>
        <div class="tips">
            <div class="t">
                <span>
                    Note: </span>
            </div>
            <div class="b">
                <div class="item">
                    <span>
                        1、
                    </span> <span>After Successful Payment, Please Contact Customer Service via QR Code Below to
                        Provide Proof of Payment, Activate Membership, and Claim Invoice </span>
                </div>
                <div class="item">
                    <span>
                        2、
                    </span> <span>For Offline Bank Transfers, Please Transfer Directly to YourKeepoeDedicated
                        Account. Typical Processing Times: ABC Bank 1-2 Days, Cross-Bank 3-5 Days (Exact Arrival
                        Time Depends on Bank) </span>
                </div>
            </div>
        </div>
        <div class="contact_kf">
            <div class="consultant_box">
                <div class="c_box_content">
                    <div class="c_box_title">
                        Need Help? Contact Us<span>Customer Service </span>
                    </div>
                    <div class="c_box_desc">
                        Providing Assistance and Support </div>
                    <div class="c_box_phone line">
                        Dedicated Hotline:<span></span>
                    </div>
                    <div class="c_box_email line">
                        Official Email:<span></span>
                    </div>
                </div>
                <div class="c_box_qrcode">
                    <div class="qrcode">
                        <img src="" alt="KF" />
                    </div>
                    <div class="c_q_desc">
                        Scan to Contact Customer Service </div>
                </div>
            </div>
        </div>
    </div>
    <div class="pay_btn price_bottom_hide">
        Pay </div>
    <input type="hidden" class="bf" name="bf" value="upgrade" />
    <div class="global_alert_upgrade_pay_btn">
        <div class="rows">
            <div>
                <div class="name">
                    Fee </div>
                <div class="price">
                    ￥1608.00
                </div>
            </div>
            <div>
                <div class="name">
                </div>
                <div class="discounted">
                </div>
            </div>
        </div>
        <div class="pay_btn">
            Pay </div>
    </div>
</div>
<div class="global_alert_payment">
    <iframe src="" frameborder="0">
    </iframe>
</div> -->
<!-- B2B企业库 KAIS  -->
<script>
    $(function() {
        $("body")
            .on(
                "mouseover",
                "#header .B2B_enterprise_library, .products_intro_box",
                function() {
                    $(".products_intro_box").addClass("current");
                }
            )
            .on(
                "mouseleave",
                "#header .B2B_enterprise_library, .products_intro_box",
                function() {
                    $(".products_intro_box").removeClass("current");
                }
            );
    });
</script>
<!-- B2B企业库 end -->
<script src="{{ asset('web/js/jweixin-1.3.2.js') }}"></script>

<div class="video_alert">
    <div class="video_box">
        <i>
        </i>
    </div>
</div>
<script src="{{ asset('web/js/load_particles.js') }}"></script>
<script src="{{ asset('web/js/queue.js') }}"></script>
<script>
    $("#global_login_form input[name=__token__]").val(getLocalStorage('token'));
    $("#AccountId").val(getLocalStorage('userId'));
    $("#Level").val(getLocalStorage('user_level'));
    $(function() {
        // 获取用户基础信息
        $.ajax({
            url: ajax_request_domain + '/base/get_user_base_info',
            type: 'post',
            dataType: 'json',
            contentType: "application/json; charset=utf-8",
            beforeSend: (xhr) => {
                xhr.setRequestHeader("token", getLocalStorage('token'));
            },
            success: function(res) {
                if (res.code == 1) {
                    const data = res.data;
                    if (data.is_login) {
                        $(".is_login.my span").text(data.collect_num);
                        $(".is_login .account_name").text(data.nickname);
                        $(".is_login .vip_name").text(data.vip_data.name);
                        $(".is_login .vip_expiretime").text(data.vip_expiretime);
                        $(".email_send_times").text(data.email_send_times);

                        setLocalStorage('userId', data.userinfo.id, data.userinfo.expiretime)
                        setLocalStorage('token', data.userinfo.token, data.userinfo.expiretime)
                        setLocalStorage('user_rule_data', data.userinfo.rule_data, data.userinfo
                            .expiretime)
                        setLocalStorage('user_limit_data', data.userinfo.limit_data, data.userinfo
                            .expiretime)
                        setLocalStorage('user_level', data.userinfo.vip, data.userinfo.expiretime)
                        $(".is_login").show();
                        $(".no_login").hide()
                    } else {
                        $(".is_login").hide();
                        $(".no_login").show();
                    }
                } else if (res.code == 0) {
                    global_obj.new_win_alert(res.msg, function() {
                        global_obj.div_mask(1);
                    }, undefined, undefined, 'fail');
                    return;
                }
            },
            error: function(error) {
                if (error.status === 500) {
                    global_obj.div_mask();
                    global_obj.win_alert_auto_close(
                        "System error, please try again later",
                        "fail",
                        2000,
                        undefined,
                        0,
                        function() {
                            global_obj.div_mask(1);
                        }
                    );
                    return false;
                }
                if (error.status === 401) {
                    themes_obj.loginBox("index_type");
                    return false;
                } else if (error.status === 403) {
                    themes_obj.upgradeBox("index_type");
                    return false;
                }
            }
        })

        // 获取客服信息
        $.ajax({
            url: ajax_request_domain + '/base/get_contact',
            type: 'post',
            dataType: 'json',
            contentType: "application/json; charset=utf-8",
            beforeSend: (xhr) => {
                xhr.setRequestHeader("token", getLocalStorage('token'));
            },
            success: function(data) {
                const parentObj = $('.contact_kf');
                parentObj.find('.c_box_phone span').text(data['mobile']);
                parentObj.find('.c_box_email span').text(data['email']);
                parentObj.find('.c_box_qrcode .qrcode img').attr('src', data['qrcode']);
            },
            error: function(error) {
                if (error.status === 500) {
                    global_obj.div_mask();
                    global_obj.win_alert_auto_close(
                        "System error, please try again later",
                        "fail",
                        2000,
                        undefined,
                        0,
                        function() {
                            global_obj.div_mask(1);
                        }
                    );
                    return false;
                }
                if (error.status === 401) {
                    themes_obj.loginBox("index_type");
                    return false;
                } else if (error.status === 403) {
                    themes_obj.upgradeBox("index_type");
                    return false;
                }
            }
        })

        // 退出登录
        $(document).on("click", ".logout", function() {
            $.ajax({
                url: ajax_request_domain + '/user/logout',
                type: 'post',
                dataType: 'json',
                contentType: "application/json; charset=utf-8",
                beforeSend: (xhr) => {
                    xhr.setRequestHeader("token", getLocalStorage('token'));
                },
                success: function(res) {
                    if (res.code === 1) {
                        removeLocalStorage('userId')
                        removeLocalStorage('token')
                        removeLocalStorage('user_rule_data')
                        removeLocalStorage('user_limit_data')
                        removeLocalStorage('user_level')
                        window.location.reload();
                    } else if (res.code === 0) {
                        global_obj.new_win_alert(res.msg, function() {
                            global_obj.div_mask(1);
                        }, undefined, undefined, 'fail');
                    }
                },
                error: function(error) {
                    if (error.status === 500) {
                        global_obj.div_mask();
                        global_obj.win_alert_auto_close(
                            "System error, please try again later",
                            "fail",
                            2000,
                            undefined,
                            0,
                            function() {
                                global_obj.div_mask(1);
                            }
                        );
                        return false;
                    }
                    if (error.status === 401) {
                        themes_obj.loginBox("index_type");
                        return false;
                    } else if (error.status === 403) {
                        themes_obj.upgradeBox("index_type");
                        return false;
                    }
                }
            })
        });

        // 购买套餐
        $('.global_alert_upgrade .title .close').on('click', function() {
            if (!$('.main_list .left_side').hasClass('current')) {
                global_obj.div_mask(1);
            }
            $('.global_alert_upgrade .prompt_box.system').removeClass('system');
            $('.global_alert_upgrade').removeClass('cur');
        })
        $('.global_alert_upgrade .price_change span').on('click', '', function() {
            $(this).addClass('cur').siblings().removeClass('cur');
            if ($(this).hasClass('show_month')) {
                $('.global_alert_upgrade .pay_times_box input[name="Times"][value="month"]').parents(
                    'label').click();
            } else {
                $('.global_alert_upgrade .pay_times_box input[name="Times"][value="year"]').parents(
                    'label').click();
            }
        })
        $('.global_alert_upgrade').on('click', '.rows label', function() {
            var _this = $(this);
            $(this).parents('.rows').find('label').removeClass('cur');
            $(this).addClass('cur');
            $(this).find('input[type=radio]').attr('checked', 'checked');
            $(this).siblings().find('input[type=radio]').removeAttr('checked');
            let this_time = $('.global_alert_upgrade .pay_times_box input[name="Times"]:checked').val();
            if ($(this).find('input').attr('name') == 'Times') {
                let attr_name = '';
                if (this_time == 'month') {
                    attr_name = 'month_';
                }
                $('.global_alert_upgrade .upgrade_level_box_new_plus .price_item').each(function() {
                    $(this).find('.price_box span.r span').html($(this).find('.price_box span.r')
                        .attr(attr_name + 'yuan'));
                    $(this).find('.price_box span.r span.price_val').html($(this).find(
                        '.price_box span.r').attr(attr_name + 'price'));
                })
                $('.global_alert_upgrade .upgrade_level_box_new_plus input[name="Level"]:checked')
                    .click();
                return false;
            }
            if ($(this).find('input').attr('name') == 'Level') {
                let scale = 1 * 100;
                let this_p = 0;
                if (this_time == 'month') {
                    this_p = Math.ceil(parseFloat($(this).find('.r').attr('month_price')) * scale) / 100;
                } else {
                    this_p = Math.ceil(parseFloat($(this).find('.r').attr('price')) * scale) / 100;
                }
                let result_p = lang_obj.global.symbol + this_p.toFixed(2);
                $('.global_alert_upgrade .rows .price').html(result_p);
                $('.global_alert_upgrade_pay_btn .rows .price').html(result_p);
            }
            $('.of_the_public_info .payment_info .CorporateOId').html('');

            if ($('.global_alert_upgrade .pay_method_box input[name="Method"]:checked').val() ==
                'public') {
                $('.global_alert_upgrade .of_the_public_info').show();
                $('.global_alert_upgrade .pay_btn').html(lang_obj.user.level.transfer);
                $('.global_alert_upgrade_pay_btn .pay_btn').html(lang_obj.user.level.transfer);
            } else {
                $('.global_alert_upgrade .pay_btn').html(lang_obj.user.level.pay_now);
                $('.global_alert_upgrade_pay_btn .pay_btn').html(lang_obj.user.level.pay_now);
                $('.global_alert_upgrade .of_the_public_info').hide();
            }
        })
        if (window.__wxjs_environment == 'miniprogram') {
            $('.miniprogram_alipay').remove();
        }
        $(".detail_main .box_item .bottom .no_view_tip_box .go_upgrade").on("click", function() {
            $(".global_alert_upgrade").addClass("cur");
            $(".div_mask").show();
        });
        $(".alert_detail .go_upgrade").on("click", function() {
            $(".global_alert_upgrade").addClass("cur");
        });
        $('.global_alert_upgrade .pay_btn').on('click', function() {
            let formData = getAlertUpgradeFormData();
            if (zuoooo_config.lang == 'en') {
                formData['paytype'] = 'Paypal';
            }
            if (formData['Level'] && formData['paytype']) {
                let _Method = formData['paytype'];
                formData['referer_url'] = window.location.href;
                $.ajax({
                    url: ajax_request_domain + '/vip/initiate_user_set_vip',
                    type: 'post',
                    dataType: 'json',
                    data: formData,
                    beforeSend: (xhr) => {
                        xhr.setRequestHeader("token", getLocalStorage('token'));
                    },
                    success: function(data) {
                        if (data.code === 1) {
                            if (formData['paytype'] === 'stripe') {
                                document.cookie = "stripe_pay_success_url=" +
                                    encodeURIComponent(window.location.pathname) +
                                    ";expires=" + 86400 + "; path=" + window.location.host;
                                document.cookie = "stripe_pay_error_url=" +
                                    encodeURIComponent(window.location.pathname) +
                                    ";expires=" + 86400 + "; path=" + window.location.host;
                            }

                            let OId = data.data.OId;
                            let CorporateOId = !data.data;

                            global_obj.div_mask(1);
                            $('.global_alert_upgrade .prompt_box.system').removeClass(
                                'system');
                            $('.global_alert_upgrade').removeClass('cur');
                            if (!CorporateOId) {
                                if (window.__wxjs_environment == 'miniprogram') {
                                    wx.miniProgram.navigateTo({
                                        url: '/pages/payment/payment?OId=' + OId
                                    })
                                } else {
                                    if (zuoooo_config.IsMobile == 1) {
                                        window.location.href = '/payment/?OId=' + OId +
                                            '&bf=' + formData['bf']
                                    } else {
                                        if (zuoooo_config.IsApp == 1) {
                                            global_obj.div_mask(0, 'email_div_mask');
                                            global_obj.win_alert_auto_close(lang_obj.user
                                                    .level.pay_browser_hint, 'fail', 2000,
                                                undefined, 0,
                                                function() {
                                                    global_obj.div_mask(1,
                                                        'email_div_mask')
                                                })
                                        } else {
                                            global_obj.div_mask(0, 'email_div_mask');
                                            $('.global_alert_payment iframe').html(data
                                                .data);
                                            if (formData['paytype'] == 'alipay') {
                                                $('.global_alert_payment').addClass(
                                                    'alipay_box')
                                            } else {
                                                $('.global_alert_payment').removeClass(
                                                    'alipay_box')
                                            }
                                            $('.global_alert_payment').addClass('cur')
                                        }
                                    }
                                }
                            } else {
                                global_obj.div_mask(0, 'email_div_mask');
                                global_obj.win_alert_auto_close(lang_obj.user.level.tips_3,
                                    '', 2000, undefined, 0,
                                    function() {
                                        global_obj.div_mask(1, 'email_div_mask')
                                    })
                            }
                        } else {
                            global_obj.div_mask();
                            global_obj.win_alert_auto_close(data.msg, 'fail', 2000,
                                undefined, 0,
                                function() {
                                    global_obj.div_mask(1);
                                });
                        }
                    },
                    error: function(error) {
                        if (error.status === 500) {
                            global_obj.div_mask();
                            global_obj.win_alert_auto_close(
                                "System error, please try again later",
                                "fail",
                                2000,
                                undefined,
                                0,
                                function() {
                                    $('.global_alert_upgrade').removeClass('cur');
                                    global_obj.div_mask(1);
                                }
                            );
                            return false;
                        }
                        if (error.status === 401) {
                            $('.global_alert_upgrade').removeClass('cur');
                            global_obj.div_mask(1);
                            themes_obj.loginBox("index_type");
                            return false;
                        } else if (error.status === 403) {
                            $('.global_alert_upgrade').removeClass('cur');
                            global_obj.div_mask(1);
                            themes_obj.upgradeBox("index_type");
                            return false;
                        }
                    }
                });
            } else {
                global_obj.div_mask(1);
                $('.global_alert_upgrade .prompt_box.system').removeClass('system');
                $('.global_alert_upgrade').removeClass('cur');
            }
        })

        //手机版价格固定
        mobile_fixed_price()
        $(window).scroll(function() {
            mobile_fixed_price()
        })
        $(window).resize(function() {
            mobile_fixed_price()
        })

        function mobile_fixed_price() {
            if ($(window).width() <= 500) {
                if (!$('.global_alert_upgrade_pay_btn').hasClass('cur')) {
                    $('.global_alert_upgrade_pay_btn').addClass('cur');
                }
                $('.global_alert_upgrade .price_bottom_hide').hide();
            } else {
                if ($('.global_alert_upgrade_pay_btn').hasClass('cur')) {
                    $('.global_alert_upgrade_pay_btn').removeClass('cur');
                }
                $('.global_alert_upgrade .price_bottom_hide').show();
            }
        }

        window.addEventListener("message", function(e) {
            if (e.data == 'message') {
                if ($('#AccountId').val() == 0) {
                    $('.global_alert_payment').removeClass('cur');
                    themes_obj.loginBox('pay_success');
                    return false;
                } else {
                    window.location.reload();
                }
            }
        })

        // 登录
        $('#global_login_form').on('submit', function() {
            let login_form_flag = 1;

            $('.input_tips').each(function() {
                $(this).html($(this).attr('tips'));
            })
            var _this = $(this);
            if (global_obj.check_form(_this.find('*[notnull]'), _this.find('*[format]'), undefined, 1)) {
                return false;
            };

            if ($('body').hasClass('lang_en')) {
                //邮箱格式验证
                $('input[name=Email]', '#global_login_form').each(function() {
                    var reg = /^\w+[a-zA-Z0-9-.+_]+@[a-zA-Z0-9-.+_]+\.\w*$/;
                    if (reg.test($(this).val()) === false) {
                        $(this).css('border', '2px solid #ff0000').addClass('null');
                        var msg = 'Incorrect Email Format';
                        $(this).next('.input_tips').html(msg);
                        $(this).next('.input_tips').show();

                        login_form_flag = 0
                        return false;
                    }
                });
            } else {
                //手机号格式验证
                $('input[name=Phone]', '#global_login_form').each(function() {
                    // var reg = /^1[3456789]\d{9}$/;
                    var reg = /^\d{11}$/;
                    var reg2 = /^xunji\d{2}$/;
                    if (reg.test($(this).val()) === false && reg2.test($(this).val()) ===
                        false) {
                        $(this).css('border', '2px solid #ff0000').addClass('null');
                        var msg = 'Incorrect Phone Number Format';
                        $(this).next('.input_tips').html(msg);
                        $(this).next('.input_tips').show();

                        login_form_flag = 0;
                        return false;
                    }
                });
            }
            if (!login_form_flag) {
                return false;
            }

            _this.find('.btn_submit').attr('disabled', true);
            $.ajax({
                url: ajax_request_domain + _this.attr('action'),
                type: "POST",
                dataType: 'json',
                data: _this.serialize(),
                beforeSend: (xhr) => {
                    xhr.setRequestHeader("token", getLocalStorage('token'));
                },
                success: function(res) {
                    if (res.code != 2) {
                        $('.user_login_box .close').click();
                    }
                    if (res.code == 1) {
                        const data = res.data;
                        if (!data) {
                            window.location.href = $("input[name=jump]").val();
                        }
                        setLocalStorage('userId', data.userinfo.id, data.userinfo.expiretime)
                        setLocalStorage('token', data.userinfo.token, data.userinfo
                            .expiretime)
                        setLocalStorage('user_rule_data', data.userinfo.rule_data, data
                            .userinfo.expiretime)
                        setLocalStorage('user_limit_data', data.userinfo.limit_data, data
                            .userinfo.expiretime)
                        setLocalStorage('user_level', data.userinfo.vip, data.userinfo
                            .expiretime)
                        window.location.reload();
                    } else if (res.code == 0) {
                        global_obj.new_win_alert(res.msg, function() {
                            global_obj.div_mask(1);
                        }, undefined, undefined, 'fail');
                    };
                    _this.find('.btn_submit').attr('disabled', false);
                },
                error: function(error) {
                    if (error.status === 500) {
                        global_obj.div_mask();
                        global_obj.win_alert_auto_close(
                            "System error, please try again later",
                            "fail",
                            2000,
                            undefined,
                            0,
                            function() {
                                global_obj.div_mask(1);
                            }
                        );
                        return false;
                    }
                    if (error.status === 401) {
                        themes_obj.loginBox("index_type");
                        return false;
                    } else if (error.status === 403) {
                        themes_obj.upgradeBox("index_type");
                        return false;
                    }
                }
            })
            return false;
        });
    })

    function user_level($tips = '') {
        if (!$tips) {
            $tips = 'This Feature Requires a Higher Version';
            $type = 0;
        } else {
            $type = 1;
        }
        global_obj.new_win_alert($tips, function() {
            global_obj.div_mask();
            $('.global_alert_upgrade').addClass('cur');
            if ($type) {
                $('.global_alert_upgrade .rows label input[name=Level]').each(function() {
                    if ($(this).attr('value') == 20) {
                        $(this).parents('label').click();
                    }
                })
            }
        }, 'alert', 1, 'none', 'Upgrade Now');
    }

    function getAlertUpgradeFormData() {
        let formData = {};
        $('.global_alert_upgrade .rows label').each(function() {
            if ($(this).hasClass('cur')) {
                if ($(this).find('input').attr('name') == 'Level') {
                    formData['Level'] = $(this).find('input').val();
                } else if ($(this).find('input').attr('name') == 'Times') {
                    formData['Times'] = $(this).find('input').val();
                } else if ($(this).find('input').attr('name') == 'Method') {
                    formData['paytype'] = $(this).find('input').val();
                }
            }
        });
        return formData;
    }

    var queue = new PopQueue()
</script>
<script>
    queue.dequeue()
</script>
</body>
</html>
